package com.hotel.dao;

import java.util.List;

import com.hotel.entity.RoleOfAuthority;

public interface RoleOfAuthorityMapper {
    int deleteByPrimaryKey(Integer authorityId);

    int insert(RoleOfAuthority record);

    int insertSelective(RoleOfAuthority record);

    RoleOfAuthority selectByPrimaryKey(Integer authorityId);

    int updateByPrimaryKeySelective(RoleOfAuthority record);

    int updateByPrimaryKey(RoleOfAuthority record);
    
    /**
     * 查询角色权限关系表 中对应角色名和权限名
     * @return
     */
    List<RoleOfAuthority> findAllRoleOfAuthoritysByUser();
}